<template>
  <div class="container">
    <audio controls v-if="mp3">
      <source :src="mp3" type="audio/mpeg" />
      您的浏览器不支持 audio 元素。
    </audio>
  </div>
</template>

<script>
export default {
  prop: {
    music: {
      type:String,
      default:'https://webfs.yun.kugou.com/202106041838/eb2db15e94627cb2279ee7b2f4afc9dd/G173/M05/0F/15/TYcBAF3cK0-AXtIlADbnrtlUrQ8629.mp3'
    }
  },
  mounted() {
    // console.log("music",this.prop);
  },
  computed: {
    mp3 () {
      return this.$store.state.mp3
    }
  }
};
</script>

<style>
</style>
